import request from "@/utils/request";

export function getInfo() {
    return request({
        method: 'get',
        url: '/user'
    })
}

export function authenticate(data) {
    return request({
        method: 'post',
        url: '/user',
        data
    })
}

export function changeInfo(data) {
    return request({
        method: 'put',
        url: '/user',
        data
    })
}